using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ClientPerfItem : GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ClientPerfItem, ClientPerfItem.Builder>
		{
			private bool resultIsReadOnly;
			private ClientPerfItem result;
			protected override ClientPerfItem.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ClientPerfItem MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ClientPerfItem DefaultInstanceForType
			{
				get
				{
					return ClientPerfItem.DefaultInstance;
				}
			}
			public uint EventID
			{
				get
				{
					return this.result.EventID;
				}
				set
				{
					this.SetEventID(value);
				}
			}
			public uint AvgElapseTime
			{
				get
				{
					return this.result.AvgElapseTime;
				}
				set
				{
					this.SetAvgElapseTime(value);
				}
			}
			public uint MaxElapseTime
			{
				get
				{
					return this.result.MaxElapseTime;
				}
				set
				{
					this.SetMaxElapseTime(value);
				}
			}
			public uint MinElapseTime
			{
				get
				{
					return this.result.MinElapseTime;
				}
				set
				{
					this.SetMinElapseTime(value);
				}
			}
			public uint Cnt
			{
				get
				{
					return this.result.Cnt;
				}
				set
				{
					this.SetCnt(value);
				}
			}
			public uint StartTime
			{
				get
				{
					return this.result.StartTime;
				}
				set
				{
					this.SetStartTime(value);
				}
			}
			public uint EndTime
			{
				get
				{
					return this.result.EndTime;
				}
				set
				{
					this.SetEndTime(value);
				}
			}
			public Builder()
			{
				this.result = ClientPerfItem.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ClientPerfItem cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ClientPerfItem PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ClientPerfItem other = this.result;
					this.result = new ClientPerfItem();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ClientPerfItem.Builder Clear()
			{
				this.result = ClientPerfItem.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ClientPerfItem.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ClientPerfItem.Builder(this.result);
				}
				return new ClientPerfItem.Builder().MergeFrom(this.result);
			}
			public override ClientPerfItem BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ClientPerfItem.Builder MergeFrom(IMessageLite other)
			{
				if (other is ClientPerfItem)
				{
					return this.MergeFrom((ClientPerfItem)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ClientPerfItem.Builder MergeFrom(ClientPerfItem other)
			{
				return this;
			}
			public override ClientPerfItem.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ClientPerfItem.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ClientPerfItem._clientPerfItemFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ClientPerfItem._clientPerfItemFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 8u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 8u)
							{
								this.result.hasEventID = input.ReadUInt32(ref this.result.eventID_);
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasAvgElapseTime = input.ReadUInt32(ref this.result.avgElapseTime_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasMaxElapseTime = input.ReadUInt32(ref this.result.maxElapseTime_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 40u)
						{
							if (num3 == 32u)
							{
								this.result.hasMinElapseTime = input.ReadUInt32(ref this.result.minElapseTime_);
								continue;
							}
							if (num3 == 40u)
							{
								this.result.hasCnt = input.ReadUInt32(ref this.result.cnt_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasStartTime = input.ReadUInt32(ref this.result.startTime_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasEndTime = input.ReadUInt32(ref this.result.endTime_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ClientPerfItem.Builder SetEventID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasEventID = true;
				this.result.eventID_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearEventID()
			{
				this.PrepareBuilder();
				this.result.hasEventID = false;
				this.result.eventID_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetAvgElapseTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasAvgElapseTime = true;
				this.result.avgElapseTime_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearAvgElapseTime()
			{
				this.PrepareBuilder();
				this.result.hasAvgElapseTime = false;
				this.result.avgElapseTime_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetMaxElapseTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMaxElapseTime = true;
				this.result.maxElapseTime_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearMaxElapseTime()
			{
				this.PrepareBuilder();
				this.result.hasMaxElapseTime = false;
				this.result.maxElapseTime_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetMinElapseTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMinElapseTime = true;
				this.result.minElapseTime_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearMinElapseTime()
			{
				this.PrepareBuilder();
				this.result.hasMinElapseTime = false;
				this.result.minElapseTime_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetCnt(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCnt = true;
				this.result.cnt_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearCnt()
			{
				this.PrepareBuilder();
				this.result.hasCnt = false;
				this.result.cnt_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetStartTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStartTime = true;
				this.result.startTime_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearStartTime()
			{
				this.PrepareBuilder();
				this.result.hasStartTime = false;
				this.result.startTime_ = 0u;
				return this;
			}
			public ClientPerfItem.Builder SetEndTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasEndTime = true;
				this.result.endTime_ = value;
				return this;
			}
			public ClientPerfItem.Builder ClearEndTime()
			{
				this.PrepareBuilder();
				this.result.hasEndTime = false;
				this.result.endTime_ = 0u;
				return this;
			}
		}
		public const int EventIDFieldNumber = 1;
		public const int AvgElapseTimeFieldNumber = 2;
		public const int MaxElapseTimeFieldNumber = 3;
		public const int MinElapseTimeFieldNumber = 4;
		public const int CntFieldNumber = 5;
		public const int StartTimeFieldNumber = 6;
		public const int EndTimeFieldNumber = 7;
		private static readonly ClientPerfItem defaultInstance;
		private static readonly string[] _clientPerfItemFieldNames;
		private static readonly uint[] _clientPerfItemFieldTags;
		private bool hasEventID;
		private uint eventID_;
		private bool hasAvgElapseTime;
		private uint avgElapseTime_;
		private bool hasMaxElapseTime;
		private uint maxElapseTime_;
		private bool hasMinElapseTime;
		private uint minElapseTime_;
		private bool hasCnt;
		private uint cnt_;
		private bool hasStartTime;
		private uint startTime_;
		private bool hasEndTime;
		private uint endTime_;
		private int memoizedSerializedSize = -1;
		public static ClientPerfItem DefaultInstance
		{
			get
			{
				return ClientPerfItem.defaultInstance;
			}
		}
		public override ClientPerfItem DefaultInstanceForType
		{
			get
			{
				return ClientPerfItem.DefaultInstance;
			}
		}
		protected override ClientPerfItem ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint EventID
		{
			get
			{
				return this.eventID_;
			}
		}
		public uint AvgElapseTime
		{
			get
			{
				return this.avgElapseTime_;
			}
		}
		public uint MaxElapseTime
		{
			get
			{
				return this.maxElapseTime_;
			}
		}
		public uint MinElapseTime
		{
			get
			{
				return this.minElapseTime_;
			}
		}
		public uint Cnt
		{
			get
			{
				return this.cnt_;
			}
		}
		public uint StartTime
		{
			get
			{
				return this.startTime_;
			}
		}
		public uint EndTime
		{
			get
			{
				return this.endTime_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasEventID && this.hasAvgElapseTime && this.hasMaxElapseTime && this.hasMinElapseTime && this.hasCnt && this.hasStartTime && this.hasEndTime;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasEventID)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.EventID);
				}
				if (this.hasAvgElapseTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.AvgElapseTime);
				}
				if (this.hasMaxElapseTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.MaxElapseTime);
				}
				if (this.hasMinElapseTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.MinElapseTime);
				}
				if (this.hasCnt)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Cnt);
				}
				if (this.hasStartTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.StartTime);
				}
				if (this.hasEndTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.EndTime);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ClientPerfItem()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] clientPerfItemFieldNames = ClientPerfItem._clientPerfItemFieldNames;
			if (this.hasEventID)
			{
				output.WriteUInt32(1, clientPerfItemFieldNames[3], this.EventID);
			}
			if (this.hasAvgElapseTime)
			{
				output.WriteUInt32(2, clientPerfItemFieldNames[0], this.AvgElapseTime);
			}
			if (this.hasMaxElapseTime)
			{
				output.WriteUInt32(3, clientPerfItemFieldNames[4], this.MaxElapseTime);
			}
			if (this.hasMinElapseTime)
			{
				output.WriteUInt32(4, clientPerfItemFieldNames[5], this.MinElapseTime);
			}
			if (this.hasCnt)
			{
				output.WriteUInt32(5, clientPerfItemFieldNames[1], this.Cnt);
			}
			if (this.hasStartTime)
			{
				output.WriteUInt32(6, clientPerfItemFieldNames[6], this.StartTime);
			}
			if (this.hasEndTime)
			{
				output.WriteUInt32(7, clientPerfItemFieldNames[2], this.EndTime);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasEventID)
			{
				num ^= this.eventID_.GetHashCode();
			}
			if (this.hasAvgElapseTime)
			{
				num ^= this.avgElapseTime_.GetHashCode();
			}
			if (this.hasMaxElapseTime)
			{
				num ^= this.maxElapseTime_.GetHashCode();
			}
			if (this.hasMinElapseTime)
			{
				num ^= this.minElapseTime_.GetHashCode();
			}
			if (this.hasCnt)
			{
				num ^= this.cnt_.GetHashCode();
			}
			if (this.hasStartTime)
			{
				num ^= this.startTime_.GetHashCode();
			}
			if (this.hasEndTime)
			{
				num ^= this.endTime_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			ClientPerfItem clientPerfItem = object_0 as ClientPerfItem;
			return clientPerfItem != null && (this.hasEventID == clientPerfItem.hasEventID && (!this.hasEventID || this.eventID_.Equals(clientPerfItem.eventID_))) && (this.hasAvgElapseTime == clientPerfItem.hasAvgElapseTime && (!this.hasAvgElapseTime || this.avgElapseTime_.Equals(clientPerfItem.avgElapseTime_))) && (this.hasMaxElapseTime == clientPerfItem.hasMaxElapseTime && (!this.hasMaxElapseTime || this.maxElapseTime_.Equals(clientPerfItem.maxElapseTime_))) && (this.hasMinElapseTime == clientPerfItem.hasMinElapseTime && (!this.hasMinElapseTime || this.minElapseTime_.Equals(clientPerfItem.minElapseTime_))) && (this.hasCnt == clientPerfItem.hasCnt && (!this.hasCnt || this.cnt_.Equals(clientPerfItem.cnt_))) && (this.hasStartTime == clientPerfItem.hasStartTime && (!this.hasStartTime || this.startTime_.Equals(clientPerfItem.startTime_))) && (this.hasEndTime == clientPerfItem.hasEndTime && (!this.hasEndTime || this.endTime_.Equals(clientPerfItem.endTime_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("EventID", this.hasEventID, this.eventID_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("AvgElapseTime", this.hasAvgElapseTime, this.avgElapseTime_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("MaxElapseTime", this.hasMaxElapseTime, this.maxElapseTime_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("MinElapseTime", this.hasMinElapseTime, this.minElapseTime_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("Cnt", this.hasCnt, this.cnt_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("StartTime", this.hasStartTime, this.startTime_, writer);
			GeneratedMessageLite<ClientPerfItem, ClientPerfItem.Builder>.PrintField("EndTime", this.hasEndTime, this.endTime_, writer);
		}
		public static ClientPerfItem ParseFrom(byte[] data)
		{
			return ClientPerfItem.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ClientPerfItem MakeReadOnly()
		{
			return this;
		}
		public static ClientPerfItem.Builder CreateBuilder()
		{
			return new ClientPerfItem.Builder();
		}
		public override ClientPerfItem.Builder ToBuilder()
		{
			return ClientPerfItem.CreateBuilder(this);
		}
		public override ClientPerfItem.Builder CreateBuilderForType()
		{
			return new ClientPerfItem.Builder();
		}
		public static ClientPerfItem.Builder CreateBuilder(ClientPerfItem prototype)
		{
			return new ClientPerfItem.Builder(prototype);
		}
		static ClientPerfItem()
		{
			ClientPerfItem.defaultInstance = new ClientPerfItem().MakeReadOnly();
			ClientPerfItem._clientPerfItemFieldNames = new string[]
			{
				"AvgElapseTime",
				"Cnt",
				"EndTime",
				"EventID",
				"MaxElapseTime",
				"MinElapseTime",
				"StartTime"
			};
			ClientPerfItem._clientPerfItemFieldTags = new uint[]
			{
				16u,
				40u,
				56u,
				8u,
				24u,
				32u,
				48u
			};
			object.ReferenceEquals(micromsg.Proto.ClientPerfItem.Descriptor, null);
		}
	}
}
